package com.custom.tag;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestUserBean {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"test.xml");
		User user = (User) context
				.getBean("testbean");
		System.out.println(user.getUserName()+"---"+user.getEmail());

	}

}
